package du.myseckill.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import du.myseckill.pojo.Goods;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface GoodsDao extends BaseMapper<Goods> {
    int insertUserSecKill(@Param("userId") long userId, @Param("goodsId") long goodsId);
    int updateGoodsNumber(long goodsId);
    Goods selectGoodsById(long goodsId);
    Goods selectGoodsForUpdate(long goodsId);

}
